package org.tp8.sampleapp.dms.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * The Class Course.
 */
@Document
@XmlRootElement(name = "book")
@XmlAccessorType(XmlAccessType.FIELD)
public class BookDoc extends AbstractDocModel<ObjectId> {

	/**
	 * The Constant serialVersionUID.
	 */
	private static final long serialVersionUID = 3865013646954591904L;

	/**
	 * The author.
	 */
	@XmlElement(name = "author")
	private String author;

	/**
	 * The pages.
	 */
	@XmlElement(name = "pages")
	private Integer pages;

	/**
	 * Gets the author.
	 * 
	 * @return the author
	 */
	public String getAuthor() {
		return author;
	}

	/**
	 * Sets the author.
	 * 
	 * @param author
	 *            the new author
	 */
	public void setAuthor(String author) {
		this.author = author;
	}

	/**
	 * Gets the pages.
	 * 
	 * @return the pages
	 */
	public Integer getPages() {
		return pages;
	}

	/**
	 * Sets the pages.
	 * 
	 * @param pages
	 *            the new pages
	 */
	public void setPages(Integer pages) {
		this.pages = pages;
	}

}
